package app.fugema.shop.main.goods.adapter;

import android.view.View;

import com.base.common.view.adapter.ada.BaseRVAdapter;
import com.base.common.view.adapter.ada.SingleUniversalAdapter;
import app.fugema.shop.R;
import app.fugema.shop.main.goods.model.CategorieBean;
import app.fugema.shop.main.goods.view.GoodsDetailActivity;

public class ShopCateAdapter extends SingleUniversalAdapter<CategorieBean> {

    @Override
    public int getLayoutId()
    {
        return R.layout.item_shop_cate_view;
    }


    @Override
    public void onItemClick(View view, BaseRVAdapter adapter, int onclickType, int position, CategorieBean bean) {
        super.onItemClick(view, adapter, onclickType, position, bean);

        GoodsDetailActivity.start(view.getContext(), bean.getId());
        /*
        switch (view.getId())
        {
            case R.id.givHeadImage:
            case R.id.tvName:
                break;
            default:
                break;
        }
        */
    }
}
